
import 'package:example/test/evid.dart';
import 'package:example/zffline.dart';
import 'package:sqflite/orm/column.dart';
import 'package:sqflite/orm/data_class.dart';
import 'package:sqflite/orm/db_manager.dart';
import 'package:sqflite/orm/table.dart';

part 'test_database.g.dart';

///运行 flutter pub run build_runner build  获得编译后的文件
@SqlitexDatabase(tables: [EvidTable, OfflineTable, OkTable,OkTable2])
class AppDatabase extends _$AppDatabase {}

@DataClassName('OkBean')
class OkTable extends Table  {

  @override
  String get tableName => "okkk";

  Column get id => text().named('id')();
}

@DataClassName('OkBean2')
class OkTable2 extends Table  {

  @override
  String get tableName => "okkk2";

  Column get id => text().named('id')();
}
